#ifndef __KERNEL_H__
#define __KERNEL_H__

#define INT_MAX		((int)(~0U>>1))
#define INT_MIN		(-INT_MAX - 1)
#define UINT_MAX	(~0U)
#define LONG_MAX	((long)(~0UL>>1))
#define LONG_MIN	(-LONG_MAX - 1)
#define ULONG_MAX	(~0UL)


#define max(a, b)        ((a) > (b) ? (a) : (b))
#define min(a, b)        ((a) < (b) ? (a) : (b))
#define min3(x, y, z)    min(min(x, y), z)
#define max3(x, y, z)    max(max(x, y), z)

#endif
